package com.chinawayltd.ews.sample.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TTaskExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TTaskExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTaskNoIsNull() {
            addCriterion("task_no is null");
            return (Criteria) this;
        }

        public Criteria andTaskNoIsNotNull() {
            addCriterion("task_no is not null");
            return (Criteria) this;
        }

        public Criteria andTaskNoEqualTo(String value) {
            addCriterion("task_no =", value, "taskNo");
            return (Criteria) this;
        }

        public Criteria andTaskNoNotEqualTo(String value) {
            addCriterion("task_no <>", value, "taskNo");
            return (Criteria) this;
        }

        public Criteria andTaskNoGreaterThan(String value) {
            addCriterion("task_no >", value, "taskNo");
            return (Criteria) this;
        }

        public Criteria andTaskNoGreaterThanOrEqualTo(String value) {
            addCriterion("task_no >=", value, "taskNo");
            return (Criteria) this;
        }

        public Criteria andTaskNoLessThan(String value) {
            addCriterion("task_no <", value, "taskNo");
            return (Criteria) this;
        }

        public Criteria andTaskNoLessThanOrEqualTo(String value) {
            addCriterion("task_no <=", value, "taskNo");
            return (Criteria) this;
        }

        public Criteria andTaskNoLike(String value) {
            addCriterion("task_no like", value, "taskNo");
            return (Criteria) this;
        }

        public Criteria andTaskNoNotLike(String value) {
            addCriterion("task_no not like", value, "taskNo");
            return (Criteria) this;
        }

        public Criteria andTaskNoIn(List<String> values) {
            addCriterion("task_no in", values, "taskNo");
            return (Criteria) this;
        }

        public Criteria andTaskNoNotIn(List<String> values) {
            addCriterion("task_no not in", values, "taskNo");
            return (Criteria) this;
        }

        public Criteria andTaskNoBetween(String value1, String value2) {
            addCriterion("task_no between", value1, value2, "taskNo");
            return (Criteria) this;
        }

        public Criteria andTaskNoNotBetween(String value1, String value2) {
            addCriterion("task_no not between", value1, value2, "taskNo");
            return (Criteria) this;
        }

        public Criteria andVehicleIdIsNull() {
            addCriterion("vehicle_id is null");
            return (Criteria) this;
        }

        public Criteria andVehicleIdIsNotNull() {
            addCriterion("vehicle_id is not null");
            return (Criteria) this;
        }

        public Criteria andVehicleIdEqualTo(Long value) {
            addCriterion("vehicle_id =", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdNotEqualTo(Long value) {
            addCriterion("vehicle_id <>", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdGreaterThan(Long value) {
            addCriterion("vehicle_id >", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdGreaterThanOrEqualTo(Long value) {
            addCriterion("vehicle_id >=", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdLessThan(Long value) {
            addCriterion("vehicle_id <", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdLessThanOrEqualTo(Long value) {
            addCriterion("vehicle_id <=", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdIn(List<Long> values) {
            addCriterion("vehicle_id in", values, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdNotIn(List<Long> values) {
            addCriterion("vehicle_id not in", values, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdBetween(Long value1, Long value2) {
            addCriterion("vehicle_id between", value1, value2, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdNotBetween(Long value1, Long value2) {
            addCriterion("vehicle_id not between", value1, value2, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleNumberIsNull() {
            addCriterion("vehicle_number is null");
            return (Criteria) this;
        }

        public Criteria andVehicleNumberIsNotNull() {
            addCriterion("vehicle_number is not null");
            return (Criteria) this;
        }

        public Criteria andVehicleNumberEqualTo(String value) {
            addCriterion("vehicle_number =", value, "vehicleNumber");
            return (Criteria) this;
        }

        public Criteria andVehicleNumberNotEqualTo(String value) {
            addCriterion("vehicle_number <>", value, "vehicleNumber");
            return (Criteria) this;
        }

        public Criteria andVehicleNumberGreaterThan(String value) {
            addCriterion("vehicle_number >", value, "vehicleNumber");
            return (Criteria) this;
        }

        public Criteria andVehicleNumberGreaterThanOrEqualTo(String value) {
            addCriterion("vehicle_number >=", value, "vehicleNumber");
            return (Criteria) this;
        }

        public Criteria andVehicleNumberLessThan(String value) {
            addCriterion("vehicle_number <", value, "vehicleNumber");
            return (Criteria) this;
        }

        public Criteria andVehicleNumberLessThanOrEqualTo(String value) {
            addCriterion("vehicle_number <=", value, "vehicleNumber");
            return (Criteria) this;
        }

        public Criteria andVehicleNumberLike(String value) {
            addCriterion("vehicle_number like", value, "vehicleNumber");
            return (Criteria) this;
        }

        public Criteria andVehicleNumberNotLike(String value) {
            addCriterion("vehicle_number not like", value, "vehicleNumber");
            return (Criteria) this;
        }

        public Criteria andVehicleNumberIn(List<String> values) {
            addCriterion("vehicle_number in", values, "vehicleNumber");
            return (Criteria) this;
        }

        public Criteria andVehicleNumberNotIn(List<String> values) {
            addCriterion("vehicle_number not in", values, "vehicleNumber");
            return (Criteria) this;
        }

        public Criteria andVehicleNumberBetween(String value1, String value2) {
            addCriterion("vehicle_number between", value1, value2, "vehicleNumber");
            return (Criteria) this;
        }

        public Criteria andVehicleNumberNotBetween(String value1, String value2) {
            addCriterion("vehicle_number not between", value1, value2, "vehicleNumber");
            return (Criteria) this;
        }

        public Criteria andDriverIdIsNull() {
            addCriterion("driver_id is null");
            return (Criteria) this;
        }

        public Criteria andDriverIdIsNotNull() {
            addCriterion("driver_id is not null");
            return (Criteria) this;
        }

        public Criteria andDriverIdEqualTo(Long value) {
            addCriterion("driver_id =", value, "driverId");
            return (Criteria) this;
        }

        public Criteria andDriverIdNotEqualTo(Long value) {
            addCriterion("driver_id <>", value, "driverId");
            return (Criteria) this;
        }

        public Criteria andDriverIdGreaterThan(Long value) {
            addCriterion("driver_id >", value, "driverId");
            return (Criteria) this;
        }

        public Criteria andDriverIdGreaterThanOrEqualTo(Long value) {
            addCriterion("driver_id >=", value, "driverId");
            return (Criteria) this;
        }

        public Criteria andDriverIdLessThan(Long value) {
            addCriterion("driver_id <", value, "driverId");
            return (Criteria) this;
        }

        public Criteria andDriverIdLessThanOrEqualTo(Long value) {
            addCriterion("driver_id <=", value, "driverId");
            return (Criteria) this;
        }

        public Criteria andDriverIdIn(List<Long> values) {
            addCriterion("driver_id in", values, "driverId");
            return (Criteria) this;
        }

        public Criteria andDriverIdNotIn(List<Long> values) {
            addCriterion("driver_id not in", values, "driverId");
            return (Criteria) this;
        }

        public Criteria andDriverIdBetween(Long value1, Long value2) {
            addCriterion("driver_id between", value1, value2, "driverId");
            return (Criteria) this;
        }

        public Criteria andDriverIdNotBetween(Long value1, Long value2) {
            addCriterion("driver_id not between", value1, value2, "driverId");
            return (Criteria) this;
        }

        public Criteria andDriverNameIsNull() {
            addCriterion("driver_name is null");
            return (Criteria) this;
        }

        public Criteria andDriverNameIsNotNull() {
            addCriterion("driver_name is not null");
            return (Criteria) this;
        }

        public Criteria andDriverNameEqualTo(String value) {
            addCriterion("driver_name =", value, "driverName");
            return (Criteria) this;
        }

        public Criteria andDriverNameNotEqualTo(String value) {
            addCriterion("driver_name <>", value, "driverName");
            return (Criteria) this;
        }

        public Criteria andDriverNameGreaterThan(String value) {
            addCriterion("driver_name >", value, "driverName");
            return (Criteria) this;
        }

        public Criteria andDriverNameGreaterThanOrEqualTo(String value) {
            addCriterion("driver_name >=", value, "driverName");
            return (Criteria) this;
        }

        public Criteria andDriverNameLessThan(String value) {
            addCriterion("driver_name <", value, "driverName");
            return (Criteria) this;
        }

        public Criteria andDriverNameLessThanOrEqualTo(String value) {
            addCriterion("driver_name <=", value, "driverName");
            return (Criteria) this;
        }

        public Criteria andDriverNameLike(String value) {
            addCriterion("driver_name like", value, "driverName");
            return (Criteria) this;
        }

        public Criteria andDriverNameNotLike(String value) {
            addCriterion("driver_name not like", value, "driverName");
            return (Criteria) this;
        }

        public Criteria andDriverNameIn(List<String> values) {
            addCriterion("driver_name in", values, "driverName");
            return (Criteria) this;
        }

        public Criteria andDriverNameNotIn(List<String> values) {
            addCriterion("driver_name not in", values, "driverName");
            return (Criteria) this;
        }

        public Criteria andDriverNameBetween(String value1, String value2) {
            addCriterion("driver_name between", value1, value2, "driverName");
            return (Criteria) this;
        }

        public Criteria andDriverNameNotBetween(String value1, String value2) {
            addCriterion("driver_name not between", value1, value2, "driverName");
            return (Criteria) this;
        }

        public Criteria andRoutPalletIsNull() {
            addCriterion("rout_pallet is null");
            return (Criteria) this;
        }

        public Criteria andRoutPalletIsNotNull() {
            addCriterion("rout_pallet is not null");
            return (Criteria) this;
        }

        public Criteria andRoutPalletEqualTo(BigDecimal value) {
            addCriterion("rout_pallet =", value, "routPallet");
            return (Criteria) this;
        }

        public Criteria andRoutPalletNotEqualTo(BigDecimal value) {
            addCriterion("rout_pallet <>", value, "routPallet");
            return (Criteria) this;
        }

        public Criteria andRoutPalletGreaterThan(BigDecimal value) {
            addCriterion("rout_pallet >", value, "routPallet");
            return (Criteria) this;
        }

        public Criteria andRoutPalletGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("rout_pallet >=", value, "routPallet");
            return (Criteria) this;
        }

        public Criteria andRoutPalletLessThan(BigDecimal value) {
            addCriterion("rout_pallet <", value, "routPallet");
            return (Criteria) this;
        }

        public Criteria andRoutPalletLessThanOrEqualTo(BigDecimal value) {
            addCriterion("rout_pallet <=", value, "routPallet");
            return (Criteria) this;
        }

        public Criteria andRoutPalletIn(List<BigDecimal> values) {
            addCriterion("rout_pallet in", values, "routPallet");
            return (Criteria) this;
        }

        public Criteria andRoutPalletNotIn(List<BigDecimal> values) {
            addCriterion("rout_pallet not in", values, "routPallet");
            return (Criteria) this;
        }

        public Criteria andRoutPalletBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("rout_pallet between", value1, value2, "routPallet");
            return (Criteria) this;
        }

        public Criteria andRoutPalletNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("rout_pallet not between", value1, value2, "routPallet");
            return (Criteria) this;
        }

        public Criteria andStartTimeIsNull() {
            addCriterion("start_time is null");
            return (Criteria) this;
        }

        public Criteria andStartTimeIsNotNull() {
            addCriterion("start_time is not null");
            return (Criteria) this;
        }

        public Criteria andStartTimeEqualTo(Date value) {
            addCriterion("start_time =", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotEqualTo(Date value) {
            addCriterion("start_time <>", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeGreaterThan(Date value) {
            addCriterion("start_time >", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("start_time >=", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeLessThan(Date value) {
            addCriterion("start_time <", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("start_time <=", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeIn(List<Date> values) {
            addCriterion("start_time in", values, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotIn(List<Date> values) {
            addCriterion("start_time not in", values, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeBetween(Date value1, Date value2) {
            addCriterion("start_time between", value1, value2, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("start_time not between", value1, value2, "startTime");
            return (Criteria) this;
        }

        public Criteria andFinishTimeIsNull() {
            addCriterion("finish_time is null");
            return (Criteria) this;
        }

        public Criteria andFinishTimeIsNotNull() {
            addCriterion("finish_time is not null");
            return (Criteria) this;
        }

        public Criteria andFinishTimeEqualTo(Date value) {
            addCriterion("finish_time =", value, "finishTime");
            return (Criteria) this;
        }

        public Criteria andFinishTimeNotEqualTo(Date value) {
            addCriterion("finish_time <>", value, "finishTime");
            return (Criteria) this;
        }

        public Criteria andFinishTimeGreaterThan(Date value) {
            addCriterion("finish_time >", value, "finishTime");
            return (Criteria) this;
        }

        public Criteria andFinishTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("finish_time >=", value, "finishTime");
            return (Criteria) this;
        }

        public Criteria andFinishTimeLessThan(Date value) {
            addCriterion("finish_time <", value, "finishTime");
            return (Criteria) this;
        }

        public Criteria andFinishTimeLessThanOrEqualTo(Date value) {
            addCriterion("finish_time <=", value, "finishTime");
            return (Criteria) this;
        }

        public Criteria andFinishTimeIn(List<Date> values) {
            addCriterion("finish_time in", values, "finishTime");
            return (Criteria) this;
        }

        public Criteria andFinishTimeNotIn(List<Date> values) {
            addCriterion("finish_time not in", values, "finishTime");
            return (Criteria) this;
        }

        public Criteria andFinishTimeBetween(Date value1, Date value2) {
            addCriterion("finish_time between", value1, value2, "finishTime");
            return (Criteria) this;
        }

        public Criteria andFinishTimeNotBetween(Date value1, Date value2) {
            addCriterion("finish_time not between", value1, value2, "finishTime");
            return (Criteria) this;
        }

        public Criteria andActualStartTimeIsNull() {
            addCriterion("actual_start_time is null");
            return (Criteria) this;
        }

        public Criteria andActualStartTimeIsNotNull() {
            addCriterion("actual_start_time is not null");
            return (Criteria) this;
        }

        public Criteria andActualStartTimeEqualTo(Date value) {
            addCriterion("actual_start_time =", value, "actualStartTime");
            return (Criteria) this;
        }

        public Criteria andActualStartTimeNotEqualTo(Date value) {
            addCriterion("actual_start_time <>", value, "actualStartTime");
            return (Criteria) this;
        }

        public Criteria andActualStartTimeGreaterThan(Date value) {
            addCriterion("actual_start_time >", value, "actualStartTime");
            return (Criteria) this;
        }

        public Criteria andActualStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("actual_start_time >=", value, "actualStartTime");
            return (Criteria) this;
        }

        public Criteria andActualStartTimeLessThan(Date value) {
            addCriterion("actual_start_time <", value, "actualStartTime");
            return (Criteria) this;
        }

        public Criteria andActualStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("actual_start_time <=", value, "actualStartTime");
            return (Criteria) this;
        }

        public Criteria andActualStartTimeIn(List<Date> values) {
            addCriterion("actual_start_time in", values, "actualStartTime");
            return (Criteria) this;
        }

        public Criteria andActualStartTimeNotIn(List<Date> values) {
            addCriterion("actual_start_time not in", values, "actualStartTime");
            return (Criteria) this;
        }

        public Criteria andActualStartTimeBetween(Date value1, Date value2) {
            addCriterion("actual_start_time between", value1, value2, "actualStartTime");
            return (Criteria) this;
        }

        public Criteria andActualStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("actual_start_time not between", value1, value2, "actualStartTime");
            return (Criteria) this;
        }

        public Criteria andActualFinishTimeIsNull() {
            addCriterion("actual_finish_time is null");
            return (Criteria) this;
        }

        public Criteria andActualFinishTimeIsNotNull() {
            addCriterion("actual_finish_time is not null");
            return (Criteria) this;
        }

        public Criteria andActualFinishTimeEqualTo(Date value) {
            addCriterion("actual_finish_time =", value, "actualFinishTime");
            return (Criteria) this;
        }

        public Criteria andActualFinishTimeNotEqualTo(Date value) {
            addCriterion("actual_finish_time <>", value, "actualFinishTime");
            return (Criteria) this;
        }

        public Criteria andActualFinishTimeGreaterThan(Date value) {
            addCriterion("actual_finish_time >", value, "actualFinishTime");
            return (Criteria) this;
        }

        public Criteria andActualFinishTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("actual_finish_time >=", value, "actualFinishTime");
            return (Criteria) this;
        }

        public Criteria andActualFinishTimeLessThan(Date value) {
            addCriterion("actual_finish_time <", value, "actualFinishTime");
            return (Criteria) this;
        }

        public Criteria andActualFinishTimeLessThanOrEqualTo(Date value) {
            addCriterion("actual_finish_time <=", value, "actualFinishTime");
            return (Criteria) this;
        }

        public Criteria andActualFinishTimeIn(List<Date> values) {
            addCriterion("actual_finish_time in", values, "actualFinishTime");
            return (Criteria) this;
        }

        public Criteria andActualFinishTimeNotIn(List<Date> values) {
            addCriterion("actual_finish_time not in", values, "actualFinishTime");
            return (Criteria) this;
        }

        public Criteria andActualFinishTimeBetween(Date value1, Date value2) {
            addCriterion("actual_finish_time between", value1, value2, "actualFinishTime");
            return (Criteria) this;
        }

        public Criteria andActualFinishTimeNotBetween(Date value1, Date value2) {
            addCriterion("actual_finish_time not between", value1, value2, "actualFinishTime");
            return (Criteria) this;
        }

        public Criteria andApplyDepartmentIsNull() {
            addCriterion("apply_department is null");
            return (Criteria) this;
        }

        public Criteria andApplyDepartmentIsNotNull() {
            addCriterion("apply_department is not null");
            return (Criteria) this;
        }

        public Criteria andApplyDepartmentEqualTo(String value) {
            addCriterion("apply_department =", value, "applyDepartment");
            return (Criteria) this;
        }

        public Criteria andApplyDepartmentNotEqualTo(String value) {
            addCriterion("apply_department <>", value, "applyDepartment");
            return (Criteria) this;
        }

        public Criteria andApplyDepartmentGreaterThan(String value) {
            addCriterion("apply_department >", value, "applyDepartment");
            return (Criteria) this;
        }

        public Criteria andApplyDepartmentGreaterThanOrEqualTo(String value) {
            addCriterion("apply_department >=", value, "applyDepartment");
            return (Criteria) this;
        }

        public Criteria andApplyDepartmentLessThan(String value) {
            addCriterion("apply_department <", value, "applyDepartment");
            return (Criteria) this;
        }

        public Criteria andApplyDepartmentLessThanOrEqualTo(String value) {
            addCriterion("apply_department <=", value, "applyDepartment");
            return (Criteria) this;
        }

        public Criteria andApplyDepartmentLike(String value) {
            addCriterion("apply_department like", value, "applyDepartment");
            return (Criteria) this;
        }

        public Criteria andApplyDepartmentNotLike(String value) {
            addCriterion("apply_department not like", value, "applyDepartment");
            return (Criteria) this;
        }

        public Criteria andApplyDepartmentIn(List<String> values) {
            addCriterion("apply_department in", values, "applyDepartment");
            return (Criteria) this;
        }

        public Criteria andApplyDepartmentNotIn(List<String> values) {
            addCriterion("apply_department not in", values, "applyDepartment");
            return (Criteria) this;
        }

        public Criteria andApplyDepartmentBetween(String value1, String value2) {
            addCriterion("apply_department between", value1, value2, "applyDepartment");
            return (Criteria) this;
        }

        public Criteria andApplyDepartmentNotBetween(String value1, String value2) {
            addCriterion("apply_department not between", value1, value2, "applyDepartment");
            return (Criteria) this;
        }

        public Criteria andConfirmStateIsNull() {
            addCriterion("confirm_state is null");
            return (Criteria) this;
        }

        public Criteria andConfirmStateIsNotNull() {
            addCriterion("confirm_state is not null");
            return (Criteria) this;
        }

        public Criteria andConfirmStateEqualTo(Byte value) {
            addCriterion("confirm_state =", value, "confirmState");
            return (Criteria) this;
        }

        public Criteria andConfirmStateNotEqualTo(Byte value) {
            addCriterion("confirm_state <>", value, "confirmState");
            return (Criteria) this;
        }

        public Criteria andConfirmStateGreaterThan(Byte value) {
            addCriterion("confirm_state >", value, "confirmState");
            return (Criteria) this;
        }

        public Criteria andConfirmStateGreaterThanOrEqualTo(Byte value) {
            addCriterion("confirm_state >=", value, "confirmState");
            return (Criteria) this;
        }

        public Criteria andConfirmStateLessThan(Byte value) {
            addCriterion("confirm_state <", value, "confirmState");
            return (Criteria) this;
        }

        public Criteria andConfirmStateLessThanOrEqualTo(Byte value) {
            addCriterion("confirm_state <=", value, "confirmState");
            return (Criteria) this;
        }

        public Criteria andConfirmStateIn(List<Byte> values) {
            addCriterion("confirm_state in", values, "confirmState");
            return (Criteria) this;
        }

        public Criteria andConfirmStateNotIn(List<Byte> values) {
            addCriterion("confirm_state not in", values, "confirmState");
            return (Criteria) this;
        }

        public Criteria andConfirmStateBetween(Byte value1, Byte value2) {
            addCriterion("confirm_state between", value1, value2, "confirmState");
            return (Criteria) this;
        }

        public Criteria andConfirmStateNotBetween(Byte value1, Byte value2) {
            addCriterion("confirm_state not between", value1, value2, "confirmState");
            return (Criteria) this;
        }

        public Criteria andExecutStateIsNull() {
            addCriterion("execut_state is null");
            return (Criteria) this;
        }

        public Criteria andExecutStateIsNotNull() {
            addCriterion("execut_state is not null");
            return (Criteria) this;
        }

        public Criteria andExecutStateEqualTo(Byte value) {
            addCriterion("execut_state =", value, "executState");
            return (Criteria) this;
        }

        public Criteria andExecutStateNotEqualTo(Byte value) {
            addCriterion("execut_state <>", value, "executState");
            return (Criteria) this;
        }

        public Criteria andExecutStateGreaterThan(Byte value) {
            addCriterion("execut_state >", value, "executState");
            return (Criteria) this;
        }

        public Criteria andExecutStateGreaterThanOrEqualTo(Byte value) {
            addCriterion("execut_state >=", value, "executState");
            return (Criteria) this;
        }

        public Criteria andExecutStateLessThan(Byte value) {
            addCriterion("execut_state <", value, "executState");
            return (Criteria) this;
        }

        public Criteria andExecutStateLessThanOrEqualTo(Byte value) {
            addCriterion("execut_state <=", value, "executState");
            return (Criteria) this;
        }

        public Criteria andExecutStateIn(List<Byte> values) {
            addCriterion("execut_state in", values, "executState");
            return (Criteria) this;
        }

        public Criteria andExecutStateNotIn(List<Byte> values) {
            addCriterion("execut_state not in", values, "executState");
            return (Criteria) this;
        }

        public Criteria andExecutStateBetween(Byte value1, Byte value2) {
            addCriterion("execut_state between", value1, value2, "executState");
            return (Criteria) this;
        }

        public Criteria andExecutStateNotBetween(Byte value1, Byte value2) {
            addCriterion("execut_state not between", value1, value2, "executState");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}